package com.cf.docker.model;

import com.cf.code.core.CField;
import com.cf.code.core.CModel;
import com.cf.code.core.CPage;
import com.cf.crud.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * boot-awm-Image
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/6/20 上午 11:53
 */
@Entity
@Table(name = "image")
@CModel(pages = {
        @CPage(title = "镜像列表", path = "image", templateName = "list.ftl", outPutName = "list.ftl"),
        @CPage(title = "镜像", path = "image", templateName = "add.ftl", outPutName = "add.ftl"),
        @CPage(title = "镜像", path = "image", templateName = "update.ftl", outPutName = "update.ftl")
})
public class Image extends BaseEntity {

    @CField(lab = "机器Id")
    @Column(name = "machineId")
    private long machineId;


    @CField(lab = "机器名字")
    @Column(name = "machineName")
    private String machineName;

    @CField(lab = "镜像名字")
    private String name;

    @CField(lab = "镜像地址", defaultValue = "docker pull registry.cn-hangzhou.aliyuncs.com")
    private String path;

    @CField(lab = "镜像状态")
    @Column(name = "state")
    private String state;

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getMachineName() {
        return machineName;
    }

    public void setMachineName(String machineName) {
        this.machineName = machineName;
    }

    public long getMachineId() {
        return machineId;
    }

    public void setMachineId(long machineId) {
        this.machineId = machineId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
